import request from '@/utils/request'

// 查询参股基金-对外投资基金列表
export function listGpExtFunds(query) {
  return request({
    url: '/gp/gpExtFunds/list',
    method: 'get',
    params: query
  })
}

// 查询参股基金-对外投资基金详细
export function getGpExtFunds(id) {
  return request({
    url: '/gp/gpExtFunds/' + id,
    method: 'get'
  })
}

// 保存参股基金-对外投资基金
export function saveGpExtFunds(data) {
  return request({
    url: '/gp/gpExtFunds/save',
    method: 'post',
    data: data
  })
}

// 删除参股基金-对外投资基金
export function delGpExtFunds(id) {
  return request({
    url: '/gp/gpExtFunds/' + id,
    method: 'delete'
  })
}

// 导出参股基金-对外投资基金
export function exportGpExtFunds(query) {
  return request({
    url: '/gp/gpExtFunds/export',
    method: 'get',
    params: query
  })
}

// // logo上传
export function uploadAvatar(data) {
  return request({
    url: '/gp/gpExtFunds/avatar',
    method: 'post',
    data: data
  })
}
